@page "/Axis"
@inject NavigationManager NavigationManager
@inject HttpClient HttpClient

<Line Config="config1" OnFirstRender="onChart1_FirstRender" />

@code{

    #region 示例1

    private async Task onChart1_FirstRender(IChartComponent chart)
    {
        var data1 = await DemoData.FertilityItemAsync(NavigationManager, HttpClient);
        await chart.ChangeData(data1);
    }

    LineConfig config1 = new LineConfig()
    {
        Padding = "auto",
        XField = "year",
        YField = "value",
        SeriesField = "country",
        XAxis = new ValueCatTimeAxis()
        {
            Visible = true
        },
    };

    #endregion 示例1

}

